import JSEncrypt from 'jsencrypt'

let publicKey = `MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh9AnHksnsOzzhgLSmvNwqKGpVixkyz2o8WTmjhOUAa4OxF9LTkbAykPWeZpd1pV1OobGlRzOkbnQXs1vGXrMPqFumKs7Bo0eDzSNx4dfja58oSM8wQltzOLrGvKcyqO3ZRO/fiML2Cnv70iM0qyinnrT9KTCIDLe4g3h1OL8ffENTgKoOOyYT3/o+1eIQr8TkBdDr70S0yyXEJPUtkH4yXgbW+ZZ2ynvKfd88NMLOn4rn9ja5cDd1A5mCWvHMcoJ3uqkzpT9R+5o4kq+QK6kEQ/FPaLvl9ExLjqNjUGUwB5OEc9LgtfiNZkucYKAtKfJEWaimA8Isz8f8o/6eqlH4wIDAQAB`

export const encryptorPwd = (content) => {
    if (!content) {
        return content
    }
    let encrypt = new JSEncrypt()
    encrypt.setPublicKey(publicKey)
    return encrypt.encrypt(content)
}
